import java.util.*;

public class TimeTest
{
public static void main(String [] args)
   {
       Time t1 = new Time (11, 30, true); 
       Time t2 = new Time (12, 00, true);
       Time t3 = new Time (11, 30, false);
       Time t4 = new Time (12, 30, false);
       Time t5 = new Time (11, 30, true);
       Time t6 = new Time (12, 30, false);
       Time t7 = new Time (11, 30, false);
       Time t8 = new Time (12, 30, true);
       Time t9 = new Time (11, 30, false);
       Time t10 = new Time (10, 30, false);
       System.out.println("should be 11:30am " +  t1.toString());      //11:30am
       System.out.println("should be 12:00am " + t2.toString());      //12:00am
       System.out.println("should be a positive number; " + t1.compareTo(t2));    // 11:30 am vs midnight  
       System.out.println("should be a positive number; " + t3.compareTo(t4));    // 11:30 pm vs noon  
       System.out.println("should be a negative number; " + t5.compareTo(t6));   
       System.out.println("should be a positive number; " + t7.compareTo(t8));   
       System.out.println("should be a positive number ; " + t9.compareTo(t10)); 
}
}

